package com.example.hotel.dao;

import com.example.hotel.entity.Item;
import com.example.hotel.entity.Manager;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface ManagerDao {


    List<Manager> findAll();

    @Delete("delete from manager where manager_id = #{manager_id}")
    int deleteById(int manager_id);

    int update(Manager manager);

    int add(Manager manager);
}